/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.diagram.sequence.sedi.edit.handlers;

import org.eclipse.gef.EditPolicy;
import org.eclipse.uml2.uml.Interaction;
import org.eclipse.uml2.uml.Lifeline;

import com.cea.papyrus.diagram.sequence.sedi.model.command.CreateActionExecutionSpecificationCommand;
import com.cea.papyrus.diagram.sequence.sedi.model.command.CreateExecutionSpecificationCommand;

/**
 * Handles creation of ActionExecutionSpecification.
 * 
 */
public class ActionExecutionSpecificationCreateHandler 
extends ExecutionSpecificationCreateHandler {

	/**
	 * Default constructor
	 * @param hostPolicy
	 */
    public ActionExecutionSpecificationCreateHandler(final EditPolicy hostPolicy) {
        super(hostPolicy);
    }

	@Override
	protected CreateExecutionSpecificationCommand getExecutionSpecCreateCommand(Lifeline coveredLifeline,
			Interaction interaction) {

		final CreateActionExecutionSpecificationCommand createCmd = 
			new CreateActionExecutionSpecificationCommand(coveredLifeline, interaction);
		
		return createCmd;
	}
}
